/*
 * @Description: 
 * @Author: HKH
 * @Date: 2024-09-19 14:51:50
 * @LastEditors: HKH
 * @LastEditTime: 2024-09-20 08:37:37
 */
public class Text3 {
    public static void main(String[] args) {
        //向上转型，子类对象指向父类引用。
        Base base =new Derived();
        System.out.println("base.n:"+base.n);
        System.out.println("base.v:"+base.v);
        base.show();
        base.disp();
    }

}
